package userenum

/*
@Time : 2023/4/18 17:10
@Author : 56766
@File : login.enum.go
*/
type loginStatus int

const (
	Success loginStatus = 0
	Fail    loginStatus = 1
)

func NewLoginStatus(code int) loginStatus {
	return loginStatus(code)

}

var ListLoginStatusMap = map[loginStatus]string{
	Success: "禁用",
	Fail:    "启用",
}

func (p loginStatus) StringLoginStatus() string {
	if v, ok := ListLoginStatusMap[p]; ok {
		return v
	}
	return "空"
}
